import request from '../utils/request'

var api = '/api'

export function register(data) {
  return request({
    method: 'post',
    url: `${api}/register`,
    data
  })
}

export function login(data) {
  return request({
    method: 'post',
    url: `${api}/login`,
    data
  })
}